package com.ergwang.Model.mall.vo;

import com.ergwang.Model.Goods;
import com.ergwang.Model.Orders;

import java.sql.Date;

/**
 * @author：ergwang
 * @Date: 2020/6/2
 * @Time: 14:28
 */
public class GetOrderByStateVO {
    private Integer id;
    private Integer state;
    private Integer goodsNum;
    private Double amount;
    private Integer goodsDetailId;
    private Date createtime;
    private String hasComment;
    private Orders_GoodsInfoVO goods;

    public GetOrderByStateVO() {
    }

    //方便赋值
    public GetOrderByStateVO(Orders order,Double unitPrice,Orders_GoodsInfoVO goodsInfo) {
        this.id = order.getId();
        this.state = order.getStateId();
        this.goodsNum = order.getNum();
        this.amount = this.goodsNum * unitPrice;
        this.goodsDetailId = order.getGoodsDetailId();
        this.createtime = order.getCreatetime();
        this.hasComment = order.getHasComment();
        this.goods = goodsInfo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getGoodsDetailId() {
        return goodsDetailId;
    }

    public void setGoodsDetailId(Integer goodsDetailId) {
        this.goodsDetailId = goodsDetailId;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String  getHasComment() {
        return hasComment;
    }

    public void setHasComment(String hasComment) {
        this.hasComment = hasComment;
    }

    public Orders_GoodsInfoVO getGoods() {
        return goods;
    }

    public void setGoods(Orders_GoodsInfoVO goods) {
        this.goods = goods;
    }
}
